package com.xxjqr.rbac.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.core.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum BusinessStatusEnum implements BaseEnum{
    FAIL(0, "失败"),
    SUCCESS(1, "成功"),
    ;

    @EnumValue
    private final Integer code;
    @JsonValue
    private final String desc;

    @Override
    public String getName() {
        return name();
    }
}
